cd fdk-aac-2.0.3
# 编译 fdk-aac-2.0.3
./configure \
--target-os=linux \
--prefix=$PREFIX \
--enable-shared \
--disable-static \
--enable-example \
--enable-pic \
--disable-asm \
--disable-cli \
--host=arm-linux \
cc=$CC \
cxx=$CXX \
CPPFLAGS="-fPIC"
make -j4
make install


./configure \
--target-os=linux \
--prefix=$PREFIX --arch=$CPU \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-symver \
--disable-avdevice \
--disable-x86asm \
--disable-static \
--disable-symver \
--enable-shared \
--enable-gpl \
--enable-nonfree \
--cross-prefix=$CROSS_PREFIX \
--enable-cross-compile \
--sysroot=$SYSROOT \
--disable-indev=v4l2 \
--enable-libfdk-aac \
--cc=$CC \
--cxx=$CXX \
--extra-cflags=-I/mnt/ssd/android-build-ffmpeg/lib/aarch64/include \
--extra-ldflags=-L/mnt/ssd/android-build-ffmpeg/lib/aarch64/lib \
--pkg-config=/usr/bin/pkg-config 

  make -j4
  make install






















./configure \
        --prefix=/home/wpupup/arm-lib/ffmpeg \
        --enable-filters   \
        --enable-asm \
        --enable-ffmpeg \
        --enable-ffplay \
        --enable-ffprobe \
        --enable-doc \
        --enable-cross-compile \
        --cross-prefix=aarch64-linux-gnu- \
        --arch=aarch64 \
        --target-os=linux \
        --host-os=linux \
        --enable-gpl \
        --enable-version3 \
        --enable-small \
        --enable-shared \
        --enable-static \
        --enable-encoder=rawvideo \
        --enable-encoder=mpeg2video \
        --enable-encoder=mp2 \
        --enable-encoder=libx264 \
        --enable-libx264 \
        --enable-muxer=adts \
        --enable-muxer=mpegts \
        --enable-muxer=mpeg2video \
        --enable-muxer=rtsp \
        --enable-muxer=hls \
        --enable-muxer=h264 \
        --enable-muxer=rtp \
        --enable-muxer=avi \
        --enable-muxer=flv \
        --enable-muxer=mp4 \
        --enable-demuxer=mpegts \
        --enable-demuxer=rtsp \
        --enable-demuxer=hls \
        --enable-demuxer=h264 \
        --enable-demuxer=rtp \
        --enable-demuxer=flv \
        --enable-muxer=mp4 \
        --enable-demuxer=mpegts \
        --enable-demuxer=rtsp \
        --enable-demuxer=hls \
        --enable-demuxer=h264 \
        --enable-demuxer=rtp \
        --enable-demuxer=flv \
        --enable-demuxer=avi \
        --enable-demuxer=mpegps \
        --enable-demuxer=mpegtsraw \
        --enable-demuxer=mpegvideo \
        --enable-parser=aac \
        --enable-parser=h264 \
        --enable-parser=mpeg4video \
        --enable-parser=mpegvideo \
        --enable-parser=mpegaudio \
        --enable-bsf=h264_mp4toannexb \
        --enable-protocol=http \
        --enable-protocol=rtp \
        --enable-protocol=rtmpts \
        --enable-protocol=https \
        --enable-protocol=hls \
        --enable-protocol=file \
        --enable-protocol=data \
        --enable-gray  \
        --enable-safe-bitstream-reader \
        --enable-swscale \
        --enable-swscale-alpha \
        --enable-filter=scale \
        --extra-cflags="-I/home/wpupup/arm-lib/x264/include" \
        --extra-ldflags="-L/home/wpupup/arm-lib/x264/lib"

